package com.link_with_health.model;

import java.sql.Timestamp;

public class SysInfoEntity {
    private Long id;
    private Long sender;
    private Long receiver;
    private String content;
    private Integer infoType;
    private Timestamp createTime;
    private Boolean isRead;

    //补充
    public String infoName;

    public SysInfoEntity() {
    }

    public SysInfoEntity(Long id, Long sender
            , Long receiver, String content
            , Integer infoType, Timestamp createTime
            , Boolean isRead) {
        this.id = id;
        this.sender = sender;
        this.receiver = receiver;
        this.content = content;
        this.infoType = infoType;
        this.createTime = createTime;
        this.isRead = isRead;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSender() {
        return sender;
    }

    public void setSender(Long sender) {
        this.sender = sender;
    }

    public Long getReceiver() {
        return receiver;
    }

    public void setReceiver(Long receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getInfoType() {
        return infoType;
    }

    public void setInfoType(Integer infoType) {
        this.infoType = infoType;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(Boolean read) {
        isRead = read;
    }

    public String getInfoName() {
        return infoName;
    }

    public void setInfoName(String infoName) {
        this.infoName = infoName;
    }

    @Override
    public String toString() {
        return "SysInfoEntity{" +
                "id=" + id +
                ", sender=" + sender +
                ", receiver=" + receiver +
                ", content='" + content + '\'' +
                ", infoType=" + infoType +
                ", createTime=" + createTime +
                ", isRead=" + isRead +
                '}';
    }
}
